package com.csr.csrcheck.service.impl;

import com.csr.csrcheck.mapper.Approved_byMapper;
import com.csr.csrcheck.pojo.Approved_by;
import com.csr.csrcheck.service.Approved_byService;
import com.csr.csrcheck.service.ex.CompanyException;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class Approved_byServiceImpl implements Approved_byService {
    @Resource
    private Approved_byMapper approved_byMapper;

    public List<Approved_by> listApprovde_by() {
        List<Approved_by> list = this.approved_byMapper.listApprovde_by();
        if (list == null)
            throw new CompanyException("");
        return list;
    }
}
